package yartiss.engine.simulation.system.taskset;

import yartiss.engine.simulation.system.ITaskSet;

public class TaskSetFactory {

	public static ITaskSet getNewInstance(String taskTypeName) {
		
		if("priority".equals(taskTypeName))
			return new PriorityTaskSet();
		if("deadline".equals(taskTypeName))
			return new DeadlineTaskSet();
		if("laxity".equals(taskTypeName))
			return new LaxityGraphTaskSet();
		else 
			throw new IllegalArgumentException(taskTypeName);
	}
}
